package way.scripts.classDoc.segment;

/**
 * @author Haozhiqiang  {2021/12/7 14:18}
 */
public class CDModule extends AbstractNode{

    private String name;
    private ModuleDes moduleDes;
    private InterfaceList interfaceList;
    private ClassList classList;

    @Override
    public int getLevel() {
        return 1;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ModuleDes getModuleDes() {
        return moduleDes;
    }

    public void setModuleDes(ModuleDes moduleDes) {
        moduleDes.setParentIndex(getDocIndex());
        moduleDes.setSelfIndex(1);
        this.moduleDes = moduleDes;
    }

    public InterfaceList getInterfaceList() {
        return interfaceList;
    }

    public void setInterfaceList(InterfaceList interfaceList) {
        interfaceList.setParentIndex(getDocIndex());
        interfaceList.setSelfIndex(2);
        this.interfaceList = interfaceList;
    }

    public ClassList getClassList() {
        return classList;
    }

    public void setClassList(ClassList classList) {
        classList.setParentIndex(getDocIndex());
        classList.setSelfIndex(3);
        this.classList = classList;
    }
}
